home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
t_os
/
fw
/
fw.bas
next >
Wrap
BASIC Source File
|
1993-11-30
|
1KB
|
33 lines
10 CLEAR ,,,,,300*1024:STOP OFF
20 MODE=INP(&H05EC) '現在のモード取得
30 OUT &H05EC,0 '互換モード
40 PASS$="PASSWORD:AAAAAAAAAA" 'パスワード(10文字目以降がパスワード)
50 DEF FONT "システム 12ドット"
60 MOUSE 0
70 ON ERROR GOTO 90
80 DIM SND(40000):LOAD@"fw.snd",SND:S=1:GOTO 100
90 S=0:RESUME 100
100 SCREEN@0:PALETTE:COLOR 7,0:CLS
110 '
120 X=INT(RND*640):Y=INT(RND*480):R=INT(RND*70)+30:ST=INT(RND*5)+5
130 IF S THEN PCMPLAY SND,127
140 FOR I=0 TO ST
150 CIRCLE(X,Y),R/ST*I,%(INT(RND*15)+1)
160 NEXT
170 FOR I=0 TO ST
180 CIRCLE(X,Y),R/ST*I,0
190 NEXT
200 IF MOUSE(2,0) OR MOUSE(2,1) ELSE WAIT INT(RND*50)+1:GOTO 120
210 '
220 SYMBOL(10,10),"マウスでパスワードを入力してください>",.75!,.75!
230 WHILE MOUSE(2,0) OR MOUSE(2,1):WEND
240 A$=""
250 IF MOUSE(2,0) THEN A$=A$+"A":GOTO 270
260 IF MOUSE(2,1) THEN A$=A$+"B" ELSE 250
270 WHILE MOUSE(2,0) OR MOUSE(2,1):WEND
280 SYMBOL(226+LEN(A$)*6,10),"*",.75!,.75!
290 IF LEN(A$)<10 THEN 250
300 IF A$=MID$(PASS$,10) THEN OUT &H05EC,MODE:END
310 CLS:SYMBOL(10,10),"Wrong!!",.75!,.75!,2
320 BEEP:WAIT 100:CLS:GOTO 120